package cn.fighter3.entity.node;

import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.Property;
import org.neo4j.ogm.annotation.Relationship;
import org.springframework.boot.autoconfigure.domain.EntityScan;

import java.util.HashSet;
import java.util.Set;

//@EntityScan
public class Book {
    /*
    {
  "M_PUBLISHER": "中州古籍出版社",
  "M_CALL_NO": "I237.1-7/248",
  "title": "元明北杂剧总目考略",
  "M_PUB_YEAR": "1985",
  "bookId": "1000"
}
     */
    @Id
    private String bookId;
    private String title;
    private String M_PUBLISHER;
    private String M_CALL_NO;
    private String m_PUB_YEAR;
    private String name;




    public Book(String bookId, String title, String m_PUBLISHER, String m_CALL_NO, String YEAR) {
        this.bookId = bookId;
        this.title = title;
        M_PUBLISHER = m_PUBLISHER;
        M_CALL_NO = m_CALL_NO;
        m_PUB_YEAR=YEAR;
    }

    public Book(){}

    public String getM_PUBLISHER() {
        return M_PUBLISHER;
    }

    public void setM_PUBLISHER(String m_PUBLISHER) {
        M_PUBLISHER = m_PUBLISHER;
    }

    public String getM_CALL_NO() {
        return M_CALL_NO;
    }

    public void setM_CALL_NO(String m_CALL_NO) {
        M_CALL_NO = m_CALL_NO;
    }
    public String getM_PUB_YEAR() {
        return m_PUB_YEAR;
    }
    public void setM_PUB_YEAR(String m_PUB_YEAR) {
        this.m_PUB_YEAR = m_PUB_YEAR;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

//    public String getName(){return this.title;}
//
//    public void setName(String name) {this.name=this.title;}


}
